package flow;

import java.io.IOException;
import java.util.Calendar;
import java.util.Date;

public class RunDemo {
    public static void main(String[] args) throws IOException {
        Runtime run=Runtime.getRuntime();
        System.out.println(run.freeMemory());
        System.out.println(run.maxMemory());
        System.out.println(run.totalMemory());
        //Process notepad=run.exec("notepad Demo8.java");
        //Process qq=run.exec("C:\\Program Files (x86)\\Tencent\\QQ\\Bin\\QQScLauncher.exe");
        Date date=new Date();
        Calendar calendar=Calendar.getInstance();
        int year =calendar.get(Calendar.YEAR);
        int month =calendar.get(Calendar.MONTH)+1;
        int day =calendar.get(Calendar.DAY_OF_MONTH);

        System.out.println(year);
        System.out.println(month);
        System.out.println(day);





    }
}
